package com.nothing.domain;

import java.time.LocalDate;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author shíQíang㊚
 * @since 2019年5月24日11:30:29
 */
@TableName("User")
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {

	@TableId(type= IdType.AUTO)
    private long      id;
    private String    firstName;
    private String    lastName;
    private LocalDate dob;
    private String    gender;
    private String    role;
    private String    email;
    private String    password; 
    @Builder.Default
    @TableField(exist = false)
    private Integer   pageSize = 10;
    @Builder.Default
    @TableField(exist = false)
    private Integer   pageNo = 1;
}
